package com.ruoyi.system.domain.qo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 健康数据对象 sys_health_data
 *
 * @author ruoyi
 */
@Data
@ApiModel("健康数据")
public class HealthDataQo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 数据ID
     */
    @ApiModelProperty(value = "数据ID")
    private Long id;

    /**
     * 设备ID
     */
    @ApiModelProperty(value = "设备ID")
    private String deviceId;

    /**
     * 设备ID
     */
    @ApiModelProperty(value = "设备标识")
    private String deviceIdentifier;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户姓名")
    private String userName;

    /**
     * 请求ID
     */
    @ApiModelProperty(value = "请求ID")
    private String requestId;


    @ApiModelProperty(value = "预警结束时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "预警结束时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime = new Date();
}